package cn.com.twoke.application.game.mario.core.ecs.component.render;

import cn.com.twoke.application.game.mario.core.ecs.component.Component;

/**
 * 渲染组件
 */
public interface RenderComponent extends Component, Comparable<RenderComponent> {

    Integer getIndex();
    Boolean isDisplay();

    default int compareTo(RenderComponent o) {
        return this.getIndex().compareTo(o.getIndex());
    }
}
